package com.qf.controller;

import com.qf.service.ServiceB;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 千锋健哥
 */
@RestController
@RequestMapping("/b")
public class BController {

    @Autowired
    private ServiceB serviceB;

    //b账户增加款项
    @GetMapping("/add")
    public String add() {
        serviceB.add();
        return "B success ";
    }
}
